using UnityEngine;

public class PlayerState_Move : PlayerState_Ground
{
	public PlayerState_Move(Player player, PlayerStateMachine stateMachine, string animBoolName) : base(player, stateMachine, animBoolName)
	{
	}


	public override void Enter()
	{
		base.Enter();
	}

	public override void Exit()
	{
		base.Exit();
	}

	public override void Update()
	{
		base.Update();
		if (MoveActionValue.SqrMagnitude() == 0f)
		{
			stateMachine.ChangeState(player.idleState);
		}
		
		player.Movement(new Vector3(MoveActionValue.x, 0, MoveActionValue.y));
	}
}
